import 'dart:math';
import 'dart:ui';

import 'package:flutter/material.dart';
import 'package:get/get.dart';

class FoundPageLogic extends GetxController {

  final List<Color> colors = [
    Colors.red,
    Colors.pink,
    Colors.purple,
    Colors.deepPurple,
    Colors.indigo,
    Colors.blue,
    Colors.lightBlue,
    Colors.cyan,
    Colors.teal,
    Colors.green,
    Colors.orange,
    Colors.deepOrange,
    Colors.brown,
  ];

  List<Color> getColorList(){
    List<Color> colorList = [];
    var random = Random();
    int count = 0;
    while(count < 2){
      int index = random.nextInt(colors.length);
      if(!colorList.contains(colors[index])){
        colorList.add(colors[index]);
        count++;
      }
    }
    return colorList;
  }

}
